<?php
$this->pageTitle=Yii::app()->name . ' - Error';
?>
<div id='error'>
	<?php $this->beginWidget('Block', array(
		'title' => 'Error '.$code,
		'htmlOptions' => array(
			'class' => 'big'
		),
	))?>

	<div class="error">
		<?php echo CHtml::encode($message); ?>
	</div>

	<div align=right class='mgt10 mgb10 brt pdt10'>
		<?php echo CHtml::button('返回刚才的页面', array(
			'class' => 'pn btn-href',
			'style' => 'width:100px',
			// TODO 返回刚才的页面
			'href' =>Yii::app()->request->urlReferrer,
		))?>
		<?php echo CHtml::button('返回首页', array(
			'class' => 'pn pnc btn-href',
			'style' => 'width:100px',
			'href' => Yii::app()->adminUser->returnUrl,
		))?>
 	</div>

	<?php $this->endWidget()?>
</div>